Term/Element | Which Means |
---|---|
node | Doubly linked node |
Linked List | Doubly linked list |
LL | Linked List |
single links in diagrams | Some diagrams show forward "next" links. If not shown, backward "prev" links are implied. |
next | A link from a node to the "next" node. Also called "forward link". |
prev | A link from a node to the "prev" node. Also called "backward link". |
link | another term for "next" or "prev" |
pointer | another term for "next" or "prev" |
visitedNode = this.firstNode
While not at end { CODE BLOCK E data = visitedNode.getData(); }
visitedNode = visitedNode.getNextNode();
visitedNode = visitedNode.getNextNode();
visitedNode = visitedNode.getNextNode();
visitedNode = this.firstNode While (visitedNode != null) { Do Whatever visitedNode = visitedNode.getNextNode() }
given "index" (the pos to access) count = 0 node = firstNode While node is not null if (count equals index) Return the node's data node = node.getNextNode() Increment count
given "index" (the pos to access) count = 0 node = firstNode While node is not null if (count equals index) Return the nodes data node = node.getNextNode()
count = 0 node = firstNode While node is not null Increment count node = node.getNextNode() Return size